<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAgricGoodsSellersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('agric_goods_sellers', function (Blueprint $table) {
            $table->increments('id')->comment('农业商品卖家表');
            $table->string('seller_name', 64)->nullable()->comment('卖家姓名');
            $table->string('seller_num', 11)->nullable()->comment('手机');
            $table->string('head_portrait', 255)->nullable()->comment('头像');
            $table->string('wx', 255)->nullable()->comment('微信信息');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('agric_goods_sellers');
    }
}
